package com.haiyi.activiti.engine.framework.basic;

import com.haiyi.activiti.engine.model.entity.User;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/12/7 9:33 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
public interface SecurityAdapter {

    /**
     * 获取当前登录的用户
     * @return
     */
    User getCurrentUser();

    /**
     * 用户登录
     * @param user
     */
    void login(User user);

    /**
     * 用户注销
     * @param user
     */
    void logout(User user);

}
